/*
  给定季度月份，然后输入数字判断季节
*/
#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
  int month;
  cout << "请输入月份：";
  cin >> month;

  switch (month)
  {
  case 1:
  case 2:
  case 3:
    printf("%d 月是春天", month);
    break;
  case 4:
  case 5:
  case 6:
    printf("%d 月是夏天", month);
    break;
  case 7:
  case 8:
  case 9:
    printf("%d 月是秋天", month);
    break;
  case 10:
  case 11:
  case 12:
    printf("%d 月是冬天", month);
    break;
  default:
    printf("请输入正确的月份");
    break;
  }

  return 0;
}
